# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
pkgname=cargo-vendor-filterer
pkgver=0.5.9
pkgrel=1
pkgdesc="cargo vendor with filtering for platforms and more"
url="https://github.com/coreos/cargo-vendor-filterer"
arch="all"
license="Apache-2.0"
makedepends="
	cargo
	cargo-auditable
	openssl-dev
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/coreos/cargo-vendor-filterer/archive/refs/tags/v$pkgver.tar.gz"
options="net"

prepare() {
	default_prepare

	cargo fetch --locked
}

build() {
	cargo auditable build --release --frozen
}

check() {
	cargo test --frozen --no-default-features
}

package() {
	install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/
}

sha512sums="
2fd85f797da1d75f8a4b109278bccef1b1e0faf10653a8f472e5de48ea31f743916865853a68c5d87d0820deeaed7240f1ba50df71b2b977a35465ce14b04357  cargo-vendor-filterer-0.5.9.tar.gz
"
